package RKUjava.datastructures;

/** The RKUDoubleChainLink represents a link in a double connected list, the
    datastructure implemented in RKUDoubleChain.
    The purpose of this interface is to define a number of methods used for
    accessing next and previous links on a chain. Since Java does not support
    naming fields the implementing class must define we have to do it by
    four methods.<br>
    In order to implement this interface properly you should insert the 
    following codefragment in your class.<br>
    <pre>
    public Object rkudoublechainnext, rkudoublechainprev;

    public Object getDoubleChainNext()
    {
      return rkudoublechainnext;
    };
  public Object getDoubleChainPrev()
    {
      return rkudoublechainprev;
    };

  public void setDoubleChainNext(Object next);
    {
      rkudoublechainnext = next;
    };

  public void setDoubleChainPrev(Object prev);
    {
      rkudoublechainprev = prev;
    };
</pre>

*/
public interface RKUDoubleChainLink
{
  /** Get the next element on the double chain. */
  public Object getDoubleChainNext();
  /** Get the previous element on the double chain. */
  public Object getDoubleChainPrev();
  /** Set the next element on the double chain. */
  public void setDoubleChainNext(Object next);
  /** Set the previous element on the double chain. */
  public void setDoubleChainPrev(Object prev);


}
